<?php
use yii\helpers\Html;
use yii\helpers\Url;
use yii\widgets\ActiveForm;
use common\models\MktPost;
use common\models\MktUser;

?>
<!--
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>

<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta name="keywords" content="首页关键字" />
  <meta name="description" content="首页描述" />
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <meta http-equiv="Cache-Control" content="no-cache" />
  <meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=2.0" />
  <meta name="apple-mobile-web-app-capable" content="yes"/>
  
  <link rel="stylesheet" href="resources/css/weui/weui.min.css">
  <link rel="stylesheet" href="resources/css/main.min.css">
  <link rel="stylesheet" href="resources/css/man.min.css">
  
  <script src="resources/js/jquery-1.10.min.js"></script>
  <script src="resources/js/jquery.touchSwipe.min.js"></script>
  <script src="resources/js/frmwebm.min.js"></script>
  <title>机构信息填写</title>
</head>
<body style="background: linear-gradient(225deg, rgba(140, 180, 200, 1) 0%, rgba(140, 180, 200, 1) 0%, rgba(64, 120, 155, 1) 100%, rgba(64, 120, 155, 1) 100%) repeat scroll 0 0 rgba(0, 0, 0, 0);">

-->
<?php $this->title = '机构信息填写' ?>
<?php $this->params['bodyStyle'] = 'background: linear-gradient(225deg, rgba(140, 180, 200, 1) 0%, rgba(140, 180, 200, 1) 0%, rgba(64, 120, 155, 1) 100%, rgba(64, 120, 155, 1) 100%) repeat scroll 0 0 rgba(0, 0, 0, 0);'; ?>

<style>
.weui_cells_access .weui_cell_ft:after
{
	display:none;
}
.weui_cell_bd{
  color:#666666;
}
</style>

<div style="width:100%;height:10px;"></div>
<div class="weui_panel">
    <div class="weui_panel_bd">
        <div class="weui_media_box weui_media_small_appmsg">
            <div class="weui_cells weui_cells_access">
                <a href="<?php echo Url::to(['wap/self-personal-name']); ?>" class="weui_cell">
                    <div class="weui_cell_hd">
						<img style="width:20px;margin-right:15px;display:block" alt="" src="resources/images/u3668.png"></div>
                    <div class="weui_cell_bd weui_cell_primary weui_cell_text">
                        <p>您的姓名</p>
                    </div>
        			<div class="weui_cell_ft"><?= $model->theName; ?><span> ></span></div>

                </a>
                <a href="<?php echo Url::to(['wap/self-personal-corp']); ?>" class="weui_cell">
                    <div class="weui_cell_hd">
						<img style="width:20px;margin-right:15px;display:block" alt="" src="resources/images/u3664.png"></div>
                    <div class="weui_cell_bd weui_cell_primary weui_cell_text">
                        <p>机构名称</p>
                    </div>
        			<div class="weui_cell_ft"><?= $model->company; ?><span> ></span></div>
                </a>
                <a href="<?php echo Url::to(['wap/self-personal-hy']); ?>" class="weui_cell">
                    <div class="weui_cell_hd">
						<img style="width:20px;margin-right:15px;display:block" alt="" src="resources/images/u3666.png"></div>
                    <div class="weui_cell_bd weui_cell_primary weui_cell_text">
                        <p>机构所属行业</p>
                    </div>
        			<div class="weui_cell_ft"><?= $model->getIndustryPaths(); ?><span> ></span></div>
                </a>
            </div>
        </div>
    </div>
</div>

<div style="width:100%;height:10px;"></div>
<div class="weui_panel">
    <div class="weui_panel_bd">
        <div class="weui_media_box weui_media_small_appmsg">
            <div class="weui_cells weui_cells_access">
                <a href="<?php echo Url::to(['wap/self-personal-qy']); ?>" class="weui_cell">
                    <div class="weui_cell_hd">
						<img style="width:20px;margin-right:15px;display:block" alt="" src="resources/images/u3670.png"></div>
                    <div class="weui_cell_bd weui_cell_primary weui_cell_text">
                        <p>机构所在区域</p>
                    </div>
        			<div class="weui_cell_ft"><?= $model->getAreaPaths(); ?><span> ></span></div>
                </a>
                <a href="<?php echo Url::to(['wap/self-personal-zw']); ?>" class="weui_cell">
                    <div class="weui_cell_hd">
						<img style="width:20px;margin-right:15px;display:block" alt="" src="resources/images/u3662.png"></div>
                    <div class="weui_cell_bd weui_cell_primary weui_cell_text">
                        <p>您的职务</p>
                    </div>
        			<div class="weui_cell_ft"><?= $model->duty; ?><span> ></span></div>
                </a>
            </div>
        </div>
    </div>
</div>

<!--
<div style="margin:0px 30px;text-align: left;">
	<button id="okBtn" style="width:100%;" onclick="gotoMember()" class="bind_btn">保存</button>
</div>
-->

    <div class="weui_msgx">
		<div class="weui_opr_area">
			<p class="weui_btn_area">

	            <button id="okBtn" style="width:100%;" onclick="corpInfoIsFull()" class="bind_btn ">保存</button>
<!--
				<a href="<?php echo Url::to(['wap/bind-corp']); ?>" class="weui_btn weui_btn_primary">下一步</a>
-->
			</p>
		</div>
		<div class="weui_extra_area">
		</div>
	</div>

<script type="text/javascript">
function gotoEdit()
{
//	window.location.href="openEditPage.act";
}

function corpInfoIsFull() {

    var isOk = "<?php echo (empty($model->name) || empty($model->company) || empty($model->industry_id) || empty($model->area_id) || empty($model->duty) ) ? 0 : 1 ?>"
    if (isOk == "0")
    {
        frmwebm.prompt({
            title: "友情提示",
            content:"请补全所有个人信息!"
        });
        return false;
    }
    window.location.href = "<?php echo Url::to(['bind-corpsucc']); ?>";
}

</script>
</body>
</html>
